fix temp dir creation