CLOUDIFY-2370 added option to capture output in run method