add Gemfile, update build script