fix beforeBuild.cmd