check for duplicate needed patches

duplicates could be introduced during version file updating to support
transition to new version file format.