Fix for gpg-agent.