Improved error handling around environment.json /vrutberg