Fix #204
Merge pull request #206 from wlbksy/patch-1

Fix #204 wget in mingw/msys sometimes download file with trailing name,