Patches for script for controlling commands under check_by_ssh [sf#1343171] [#520]