Improve detection of default gpg by configure.