Use a new method to control platform-dependent gem installation while ensuring Gemfile.lock stays in git, as heroku requires