Spin-off from a conversation in balena-io/reconfix#40
A project's package.json may not always be in the project's root directory. The npm updateVersion preset should allow an optional targetDir to be specified, and it would then attempt to update targetDir/package.json instead of cwd/package.json.