Use AC_CHECK_PROGS to find pcre-config and libgcrypt-config

AC_CHECK_PROG doesn't default to setting it as found!