Modified external shell calls (mainly Rapper) to produce tidier and more managable output

Also it now captures the return code, so we can in future bomb if anything other than 0 is returned from an external call.