my $subdircount = $maxforks - 1;