Fix for detecting GPG type