BUG: Fixed issue where ctest would hang if a process terminated with output in its buffers but no newline