Fix counting of test files list on slave device