fixed php SCRIPT_NAME usage when --php-app is in place