Generalized Gemfile handling for Travis