Wip 8255

I don't understand this loop check at all. We already know that one of the CDirs is bad because otherwise we wouldn't have set has_bad, but that means that the CDir is indexed in the dirfrags map...