Update version change script to support package.json, improved output an...

...d error checking