Avoid hanging output lines which might corrupt synchronized output
Output multi-line run/sudo commands correctly