fixes tmp dir creation