Added thrift installed check in build.sh