made robust against existing files
added .netrc and .gitconfig