Ensure that "output" is not buffered by ruby