Fix bat-script generation for MSys