Write gitattributes files in .npm directories