Refactor getenv access using constructor

Another alternative to PR #6 and #7 including the idea of @bobthecow. 
Possibly add an explicit string cast to `$env[$key]` to mirror the values we'll be getting back from `getenv`?