fix write to stdout for the config_fetch tool. #4018
===VersionHistory:None=== bug never shipped