Make tilde expansion work on Windows

* use Home() to return users home on Windows as well
* only match strings starting with tilde
* fix tests on Windows
This seems rather hardcodded, this is always NT? I do believe that since XP every windows is NT based but I am not sure so better ask