Fixed multiplatform support in hg downloader