SettingsLoader: refactored some code in GetExecutableFilePath.