fix ~ -> $HOME