Add option for recursive indexing of directories.