Fixed non-interactive command output

In non-interactive mode the first line of command output was not rendered
correctly as no new line was printed.