use which instead of type to probe for gpg