Fix patch for gen_key to test gpg version.