Validate remote command return val in check_by_ssh

No more meaningless "return code of 255 is out of bounds"