Try to guess the environment from the config file on console apps