Make Gemfile default the rails version more intelligently.

/cc @JonRowe