Make the version regexp saner

The old one matched `...aaaa`. The new one matches `a.a.a.a`,
not `aa.a.a.` or `.a.a.aa`.