fix bad config file matching logic