Remove carriage return characters in version file

When created on Windows, .rbenv-version or .ruby-version files may have CR characters that will prevent rbenv from correctly parsing the Ruby version. Discard those characters when reading the file.
Add test for carriage return in ruby-version file
Simplify bash expression
Move carriage return test to version-file-read
Add \r to IFS instead of removing it manually
Merge pull request #567 from genezys/patch-1

Remove carriage return characters in version file

Fixes #566
Merge tag 'upstream/rbenv' into rbenv
Update to 0.4.0+git.95