Only add index files if they're present.