Agent_Filesystem_upload: fixed actual writing of the file

Signed-off-by: Olaf Kirch <okir@suse.de>
client download-file: fix botched option check

Signed-off-by: Olaf Kirch <okir@suse.de>