Use wgScriptPath not wgScriptDir

...

Change-Id: I3e5b3edec881459703223a080e2818e9fd58ca91