Use $0 instead of %~dp0