Repopulate ~/.netrc auth.

This should be a fix for #1885.

@sigmavirus24, can you give me some code review? =)