Replace hard-coded path with one using $HOME.