Using the instance variable for argv.

Instead of using the global constant ARGV, we're changing to using the
instance variable because it is more testable.
Merge pull request #11372 from wangjohn/fixing_rails_commands_class

Using the instance variable for argv.