Use the global scope for environment lookup
Merge pull request #11 from jolynch/master

Use the global scope for environment lookup