Avoid infinite loop even if `pwd` returns relative path

The `pwd` may return relative path unexpectedly if the `$PWD` was declared badly. The `find_local_version_file()` of `version-file` will not exit if the `$RBENV_DIR` is relative.

```
$ env PWD="." bash -c 'echo "$PWD"; pwd'
.
.
```