Terminaltag: fix issues for multiple cmdlines

Signed-off-by: Pascal O.Y <xinpascal@gmail.com>