Improved the config_file discovery filter