fix mkdir issue on Windows, #674