Fix issue with files being treated as directories.
script to format ans summarize each output in the cards directory