fixed TS outdir bug with parameter -out