Make everything more consistent using Gemfile and platform detection