Avoid using apache_getenv() so it works with PHP via CGI.

I don't have enough experience with StatusWolf to know if this breaks anything.  It did allow me to run with Apache + fastcgi + php-fpm.  Thanks!