Make passing optional path to `.netrc` also work for non-Windows OSes.