We can't rely upon the SCRIPT_URI env var, as apparently it's not a standard CGI thing.