Putenv so it works in CLI and fixes some problems with newer CI installations too.
Merge pull request #2 from mclion/patch-1

Putenv so it works in CLI and fixes some probs with newer CI installs too.