Fix typo in the command to retrieve ruby version
Add `-f` option to `git checkout` to avoid errors