Make sure the read environment var is consistent
Merge pull request #10 from lonnylot/correct_env

Make sure the environment var is read consistently