Remove new line when logging subprocess output