updated bin/brand2csv with correct output of file