Uniqueify tmp paths (fix EPERM)

Attempt at fixing EPERM errors on Windows.