remove duplicated directories