Separate file collection from line counting in tally.lua