Set $HOME to $scratchdir so that our tests are not affected by