refactor: find_path(): add short exit path when find_pos() < 0