Fix building on Ubuntu

1) /bin/sh is not /bin/bash, so build.sh needs to explictly use /bin/bash
2) dash's echo does not support \x, but it does support \0 (since dash is
   /bin/sh, it gets used by Makefiles).