Fix version number calc.