Fixes to .gitattributes and .gitignore