create tempdir so we do not rely on git doing it

Seems like git on windows does not want to do it, so we do instead.