Detect environment via "ENVIRONMENT" environment variable