Use unbuffered output when in non-interactive mode

Signed-off-by: Raul Gutierrez S <rgs@itevenworks.net>