Heavily improve the memory efficiency of -createDirectoryAtPath: