Print successful command along with their output.

For "misbehaving" commands printing stuff on stdout/stderr on
success, ninja's output gets hard to follow because the command
is not recall before its output. This patch attempts to fix this.