io.directories.search: some cleanup.