Remove last line of SSH->exec