remove duplicated subdirs.