fixed cache dir creation threading issue