Edited autofind method.

If an autofound directory is empty it won't be displayed on the index
page.
Edited predefined directory method.