fix config file loading logic

reason: we want the config environment variable to override all config