Revert "avoid replacing "/home/user-alt" by "~-alt""

Doesn't work in home folder as $HOME and $PWD don't have any trailing "/".
This reverts commit 4a64c6ccec5efe49e2feb7a78dff556638088093.