downloadResources() fixed for MacOSX
Merge pull request #12 from jeromegrosse/pull_request_11

downloadResources() fixed for MacOSX