bash: Fix test for gpg2 command