Added env check during config build