improve error handling and reporting on failed commands

Testing #495 failed with `xtuple-server-test ERR! cmd stdout undefined` as the result of a failed `git clone`. These changes make error reporting more likely to present the error info and less likely to mask the real failure.
Indentation!