Replace write with npm's --save flag.
As of npm 1.3.2, it will complain about uppercase characters in pkg.name. This hack lowercases the project name, but only in package.json
2.1.3
Merge branch 'release/2.1.3' into develop