refactor rails-grunt template setup script