I think I have put the nail in the coffin on the use of the global $wgScriptPath