remote-hg: fix path when cloning with tilde expansion