Misc fixes to builder.sh

Signed-off-by: Austin Seipp <aseipp@pobox.com>