Should this check for the existence of dir->queryFilename().append("\bundle.ecl"); instead?