gpg: allow the use of gpg1 with or without agent

Suggested-by: Matthieu Weber <mweber@free.fr>