fixed .ruby-version parsing.

indexes are wrong