Fix Version.match? with ~> and -dev versions
Merge pull request #1919 from meh/master

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