[dist] make sphinx db recreation explicit
[api] do not crash when multiple path elements point to deleted repos