fix pkgin candidate version detection