Use gpg2 and fall back to gpg.