Build index from the filesystem