Update script/rails to be Ruby-version-agnostic.