Fixed the fucking config environment detection