replace homedir with tilde