configure: fix a regression in PCRE v1 detection