Do not write in $HOME during tests

This fixes make check problems on Debian's buildd servers.