[Bug 7351] cmd.exe doesn't support %~dp0 syntax