Avoided some recursion in DirectoryIterator which could cause stack overflows in large filesystems