Rework of version number validation routine.