Fixes #3837 Fix file.sed state to use file.contains_regex for success check