Ensure newline at end of output

We were stripping the newlines off the end of the output.