Fix the error message
Test for nil, since that's what you get when an environment variable
is undefined.