Make jq --raw-output --unbuffered work

--unbuffered was only affecting the normal output case, not the --raw-output case. Make the two of them play together.

Also, make sure that we flush the output *after* printing a newline, not before, or else a reader will just be waiting on that buffered newline and not get anything anyway.