use sync.WaitGroup to wait for stdout and stderr to finish before calling cmd.Wait()
simplify log
Merge pull request #106 from gengo/fix-deploy-log-failures

use sync.WaitGroup to wait for stdout and stderr to finish before callin...