Support pre Rails releases more recent than 3.0

See related discussion here: https://github.com/bundler/bundler/issues/2941