[Bug 21382] New: %~dp0 does not expand to right value