Revert "Merge branch 'golang-workaround'"

This reverts commit 7edceff71ca6aa1281658f6f60ca2e48a6e3f45f, reversing
changes made to 5dea3c9e63e49b69284822f8f529778e6b55adf0.
Avoid infinite loop in case where `pwd` returns relative path

The `pwd` may return relative path if the `$PWD` is badly declared
in bash/zsh (e.g. `PWD="." bash`). To avoid the infinite loop in
`find_local_version_file()`, stop finding the version file if the
target paths are same consecutively.
Merge branch 'avoid-infinite-loop-even-if-pwd-returns-relative-path'