remove unused global
construct the download path correctly, even on Windows