Correcting tmp dir creation