Only trim trailing carage returns and newlines from process output.