Improve the download process

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