Removing duplicate directories