Remove duplicated directories