fix build.sh mode