use $HOME in place of ~ to try and close #12