Fixes issue #798 by logging/caching to $HOME.