TS: Fixed crash when output dir doesn't exist