generate missing bat files before packing dist files - fix #1138