Some stuff (error in download and SSL use)

Hi,
the first commit is for make download works on files with ACL permissions, the second for make the script run in SSL only.

Hope this helps.

Bye