Temp filename was wrong when clustering with only 1 thread.