Check that the filename retrieved points to a directory

Otherwise it means the content of the archives had no subfolders and thus we should browse the full tmpdir
Remove the archive before browsing the extracted files

This prevent us indexing the archive itself
Remove FIXME now that we fixed it