Regression fix for commit 81aa969a62425395b201a458a74e629b4da8bf1a

Regression fix for commit 81aa969a62425395b201a458a74e629b4da8bf1a which broke remoteCmd()