Fix kill command in build.sh to work on OSX