switching rails version based on the one used in BUILD_GEMFILE

use Gemfile by default.