construct the download path correctly, even on Windows