fix race condition in command.Run and .pipe
fix race condition in command.Run and .pipe

Revealed by compiling with -race. Both the goroutines running the pipe function
and the call to cmd.Wait were interacting with the stdout and stderr pipes.

Adding an explicit WaitGroup so the Scanner could finish before we attempt
to wait on the Cmd resolves the race condition.

dmcsorley/goblin