adding sequence for dirFiles and readdirRecursive (EMFILE error fix)