fixing generated Windows scripts