Make sure opt always contains what we want
closedir() when we're ready traversing it