use fwrite() instead of echo, to prevent buffering
Merge pull request #762 from wp-cli/fix-762

`WP_CLI::confirm()` doesn't flush output