Simplify the bus_index code

Instead of comparing the paths components by components just compare the
complete strings. The behavior of this change should be backwards compatible
with the old code.