It works in cmd.exe but not MSYS.
canonical_path now expands ~ properly with the mingw build in both MSYS and cmd.exe, fixes ticket:477