Detect datafiles by attribute, not by location