Updating to use getenv instead of relying on $_ENV global
Merge pull request #18