version: Make sure package.json is clean

In case we write the new version number and commit, we may be committing
changes in package.json that were not intended to be committed. That is
why the commit version step will proceed only if package.json is clean.

Change-Id: c66dc421bc
Story-Id: SF-23