Changed $HOME to ~