Fix detection of gpg-agent running