fix ~ problem to $HOME