substitute HOME with ~
Merge pull request #3 from jhaubrich/master

Use ~ for $HOME