Using getenv instead of the $_ENV variable.

The $_ENV variable is empty on my local machine in cli and normal mode and on a travis-ci server too.