Some re-writing went on the downloader module to work on windows