Resolves Ruby syntax warning

Resolves a Ruby syntax warning for variable reuse

Original warning:

rules.rb:66: warning: shadowing outer local variable - cmd