fix .bat generator file