Make a test more resilient against the host system

If the host system had $HOME/.cargo/config which configured a user name/email
then this test would fail because those would be prioritized over $USER.

Closes #514
What if the tempdir root has a `.cargo` above it? I guess there's not much we can do in this case anyway, without being a very badly behaved program.