Correctly read .ruby-version with trailing newline