removing duplicate directories