fixed a check to create tmp when nt available