Improved best match finding algorithm

When a user asks to complete a name that is the complete name of a directory in
j's database, that name is always ranked above all others.

This way you do not have to enter a unique prefix anymore.