Fix netrc permissions

Here is a PR to make sure that the netrc file (created by login command) can only be accessed by its owner (0600 permissions).