Trim the final newline of interactive (err) output

This removes the annoying blank line that's constantly inserted between the
output and the REPL prompt.