Removing duplicated directories