Fix auto-switching tests

The correct variable is RUBY_ROOT, not RUBY. It seemed to be renamed during
the development of auto-switching functionality.