fix file name problem with ~
Merge pull request #2 from mmoutenot/master

oops