Use %~dps0 instead of %~dp0.

For consistency, use short path everywhere.
Merge pull request #1779 from apcj/dps0

Use %~dps0 instead of %~dp0.