Use cache tempdir outside git repo to prevent tempfiles being committed.