Fix typo with home path detection.
Fix typo with home path detection.

/~ - incorrect
~/ - misses edge case of ~user
~ - captures both uses of ~/ and ~user/, without adding a character mistaken to be used by Github project names

inviqa/hem,inviqa/hem