Added a more helpful error message when not finding environment variable.