Raise an error if a command exits non-zero

There are a handful of RST errors that have been difficult to debug due to no errors being raised when the `rest2html` script bombs (like #265). This changes the command implementation to raise an error with the output of stderr if the script exists with a non-zero status.

/cc @vmg @gjtorikian @rick @tnm @charliesome