correct destination patch level coming from 5.0

(thank you @sbesson)
update earlier upgrade scripts