Fix attribute error when gpg binary isn't available.