Simplify the check for infinite loop in `find_local_version_file()`.