Re-arrange the process synchronization for the download

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>