change ~ -> $HOME