Added error checks along with hints about source of error

This adds some checks for errors that might result from running shell commands.  Previously, these errors went unchecked and created the confusion in #284.  This not only adds the error checks, but also provides a hint in one case about a common source for errors.