Make run-generate and run-destroy compatible with Rails 3

Added a check which looks for the existence of "script/rails" and uses "script/rails generate" instead of "script/generate" and "script/rails destroy" instead of "script/destroy" if such file is found.