Make link index always 2nd field in link info.

Otherwise long link names can cause any of the two cut statements
to return the wrong field, resulting in an empty index for either
the base_link or the tool0 link.