Handle tilde ~ character in homedirs

Attempt to fix https://github.com/Zillode/syncthing-inotify/issues/2