Update version change script to support package.json, improved output and error checking