Changed how files are excluded when creating indices