Fix the dir creation for large files