package updater: get rid of useless code
minor cleanup
package updater: improve patch generator to try replacing multiple candidate versions strings. Helps handle package collection files like perl-packages.