Replace $HOME with ~ for shorter paths.

Makes the paths more readable to use ~ instead of the full expansion.