Bump version to 3.0.0.beta.2
Try syncing output and flushing it to fix CI errors

Good idea by @sgrif, the failures might be because the
process ends, and there is still data in the buffer