fixed .ruby-version parsing.

indexes are wrong
Merge pull request #11 from dixia/master

fixed .ruby-version parsing.