Fixed the checking for gpgme