Changing condition since RPM ships with a index directory.