Set mode for more config file endings
This sets TOML as mode for .conf,.cfg,.cf,.cnf,.ini and for .rc files. For .cfg,.ini INI is preferred.
XML mode is still set for *ui.rc files.
See https://en.wikipedia.org/wiki/Configuration_file#Configuration_files_and_operating_systems
(cherry picked from commit 1723675a)