clone: re-use the local transport's path resolution

Whe already worked out the kinks with the function used in the local
transport. Expose it and make use of it in the local clone method
instead of trying to work it out again.
Merge pull request #2399 from libgit2/cmn/path-to-path

clone: re-use the local transport's path resolution