[Gemfile] Better handle environment dependencies