Fix regex for matching version in configure.ac