Use getenv() instead of $_SERVER for env variables