Replace paths in simulations sorted by -len.
Replace paths in simulations sorted by -len.

This prevents a situation where repo A contains repo B (e.g. inside of
A's `.recipe_deps` folder) and the substituter matches the shorter
A prefix instead of the correct B prefix.

R=a30c74fa30536fe7ea81ed6dec202e35e149e1fd@chromium.org

Bug: 910369
Recipe-Manual-Change: build
Change-Id: I4d1cff86992f86990f5b63f2d15b360ccacd7f82
Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/recipes-py/+/1610704
Commit-Queue: Robbie Iannucci <40f3d43a28ebae3cb819288542e1c84d73d962d5@chromium.org>
Reviewed-by: Andrii Shyshkalov <a30c74fa30536fe7ea81ed6dec202e35e149e1fd@chromium.org>

luci/recipes-py,luci/recipes-py