Support script commands in Rails 4