Replace first ~ with user.HomeDir, if possible
Merge pull request #54 from peterhellberg/master

Replace first ~ with user.HomeDir, if possible