check whether gpg-agent exists first