Added get_settings sub to replace the duplicated code used to get hash settings from the config files