Improve error message when ENV vars are not defined.