add utility function to improve execSync reporting & handling

This needs to be merged and `xtuple-server-lib` published before upcoming changes to the `install-dev` task can pass CI.