modified get_config_file to work with global paths