change tilde to $HOME variable