Cleaner configuration file loading code