Fix git-credential-netrc netrc detection, and use gpg2.