Fix version checking [skip ci]