Automatic detection of config files