Updates deploy script and fixes bundler issues