Drops extraneous path additions.