Subsitute $HOME with ~