add ['SCRIPT_NAME'] fix for PHP 5.4 webserver