Fix version check in 002_pg_upgrade.pl.
Commit
f696c0cd5f tried to account for the version in a way that
includes development versions, but it was broken. Fix with suggestion
from Tom Lane.
Discussion: https://postgr.es/m/
1553991.
1710191312@sss.pgh.pa.us
Reported-by: Tom Lane