Build: change .gitattributes; use system line ends for non-JS files

(cherry-picked from 99d735ab4662f45c3b65ea1200fa0d3e2b671111)
Build: Set npmTags and use exec properly