add multiline match support

split command output on \n and strip to take care of any CR issues