capture build stage stderr output

Also, move 2>&1 workaround inside the pipe call. ref tadzik/panda#126