Fixed loading of config file