multiprocessing causes dirfiles to be written out of order