move build.sh from scripts.git and original from Jed's buildbot wiki page

create build directory if needed
optionally rsync output to a web server
add cleanup code
add argument handling
remove spew
add -d option to disable fetching