Fix bug introduced in the last commit. getOutputOfCommand now has a flag to specify whether to throw on failure or not.