Contextual checking and default settings for config files