Fixed incorrect stderr to stdout pipe routing in configuration phase.

Review: https://reviews.apache.org/r/18608