Fixed bugs on .bat file for building