Set the file download to sync mode

Just added the sync option to the file object responsible for writing
the download results to the file system.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>