translated build.cmd to bash