Update bat file and give windows dirs preference to avoid errors