Fix kill command in build.sh to work on OSX

Works on OSX but complains that no process found on Linux. The process is still killed and the error message can be suppressed with --quiet flag, but it doesn't exist on OSX, which is implicitly quiet.