Changed ~ to $HOME.