capture build stage stderr output

Also, move 2>&1 workaround inside the pipe call. ref tadzik/panda#126
Merge pull request #127 from pnu/master

capture build stage stderr output