Add missing newlines in output for processes with long output.

Related: https://bugzilla.redhat.com/show_bug.cgi?id=1061207