Fix loading configuration files