replace all occurences of /root and root@ by $HOME and $LOGNAME