Always closedir() in uptodate()