fix the windows generate scripts