Replaced ~ with $HOME