Use $HOME instead of tilde.