Update generator for Rails 4 compatibility

* choose excutable directory based on ActiveSupport version
* update capistrano task