Refactor getenv access using constructor

Another alternative to PR #6 and #7 including the idea of @bobthecow. 
`composer.json` claims 5.3 compatibility, so you've gotta use ugly arrays ;)