force output of buffered stdout data

Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>