Improved ripple_path_find