Refine commdline opts, outfilename generation