Fix Version.match? with ~> and -dev versions