Fix problem due to not using -u option (stderr buffered)