Update outputFiles handling in condor_filelist.py

The last element in the list can not have a comma trailing it or CMSSW
doesn't work. We have added code to respect this when adding files.