Fix shell script quoting, clean up build scripts

Tested: checked out the tree to a directory with spaces, called the
  build script from out of the tree, confirmed it worked as expected.

Signed-off-by: Filipe Brandenburger <filbranden@google.com>