Improve the linking script.

Use a junction instead of a symlink if the repo and destination directory
are on the same volume.