Log stdout and stderr on non-zero exit status

This helps troubleshooting failures when running cfn-init.

Change-Id: I601506ab05d372307bb160b198a675f048e2e9ff
Closes-Bug: #1269470
Merge "Log stdout and stderr on non-zero exit status"