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

[GH-4086]
Merge pull request #4087 from zr40/fix/master/prevent-double-output

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