Add script to generate and add global .gitignore