fixes to make bundle install work for gem