Realpath hg paths to avoid problems after a chdir, fixes #2096