Use $HOME instead of ~ inside of quoted strings.

The latter is not expanded.