Remove duplicate directories