Changed env var check to fail on blank var