Fix contrib/credentials/netrc minor issues: exit quietly; use 3-parameter open; etc.