Fixes problem when redirecting stdout on importation script
Fixes problem when redirecting stdout on importation script

Did a STDOUT.flush at the end of every fork, so anything that was left
on the stdout buffer will be printed on screen and then be able to
capture it when using redirect.

thl/places_engine,thl/places_engine,thl/places_engine