Update build script to work when gem is vendored