Copy engines settings over if present.

Currently, `writePackageJSON `will ignore `engines` settings when specified, but will use `node_version` instead. However, this format structure for [engines](https://npmjs.org/doc/json.html#engines) seems to be a valid package.json value.

I've changed the logic to copy over engines if specified and retain the previous behavior if it isn't for backward compatibility.