Support .ruby-version auto-switching in the root directory.

Resolves #256.