Combine $prevdirs with $dirs--they had same value. Properly discard $d itself from the output of find. From-SVN: r1712