remove duplicate directories