Made version of gpg configurable, defaults to gpg2.