Fixing InstallGenerator so it is compatible with Rails 4