Use appropriate command invocations for rails tasks.

Standardize calls to generate, console, destroy etc to use the first
version found of `script/$command`, `script/rails $command` or `rails
$command`.

This means those commands now work again in Rails 3+ and with RVM if
you use `rvm.el` with `rvm-activate-corresponding-ruby`.