Bug fix: incorrect file download implementation causing different behavior on Windows and Mac