only try to read from env when it is desired
Merge pull request #238 from intuit/fix_issue_with_env_error

only try to read from env when it is desired