Fix test-suite-metrics when processing directory of json files.