replace gpg-agent check to work on *NIX & *BSD, too