Add get_pcre_version() and check_pcre()

To ensure that the pcre version is what we want.

I'm not sure if 8.31 is the actual minimum version number we support, it's just what I had on my machine.