Changed $_ENV to getenv to make it ClearOS 7 friendly