Fixes issue with cache dir creation