Fix /umockdev-record/script-log-chatter test

scanf() doesn't ensure that the tail after the last % was matched, we actually
need to verify all the way up to EOF.
Add test for escaping ^ during recording