fix build.sh: use a build directory.