Robustify and enhance the settings file loader.