Fix Curl options order

Curl on OSX must receive the target file name immediately after -o.
Merge pull request #86 from j-jorge/patch-1

Fix Curl options order