fix running build.sh multiple times