Avoid eating too many newlines

Stripping stdout and stderr buffers removes all intentional
newlines at the end of the output as well. This reverts this
change in order to facefully return stdout and stderr.