Moved CONFIG_ENV to top