Extend PKPRequest::getBasePath() check to recognize arbitrary .php filenames stripped from $_SERVER['SCRIPT_NAME'] by mod_rewrite.