configure.ac: Improve the bison version check

Some versions of bison have "-" in their version number too, allow that
too, when verifying that the bison installed is a recent version.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>