Generator fixes for Rails 2