prefs: schemes: choose the best scheme upgrade from the existing one

(integrated from trunk branch change 649899b by Todd Whiteman <toddw@activestate.com>)