fix a regression related to WSGI SCRIPT_NAME/script_root, etc.