devdir picks the shortest match