Changed $_ENV to getenv to make it ClearOS 7 friendly

Just trying out a pull request.