Merge pull request #50 from 5long/expand-tilde-in-source-url

Expand tilde in source url(cherry picked from commit 8d025c1047bd313b4b09d9f7b328c9ae42ed0151)