Flush stdout after each write

Ensures timely output when combining the -l option with the 'tee'
command.