Added local environment detection via $_ENV