A lot of fixing went on the download module to make it work on windows