Don't output stdout and stderr twice when shell provisioner fails

Issue #4086