Added useAgent=true for gpg2