Avoid perl warnings

perl 5.20 warns "Useless use of greediness modifier ? in regex" when a question mark is used after a quantifier, but the whole thing is followed by the \z anchor.

Also fix some version numbers that thought the next release would be 3.4.