Implement upstream bug work around and multiple key support.

See upstream bug #1640:
    - https://bugs.g10code.com/gnupg/issue1640

Also implement the ability to process multiple keys on the command line.