Fix remote ssh command error sh: 2: Syntax error: "|" unexpected. Thanks to Herve Werner for the report.