Use file.contains_regex to check for successful sed change
Join a line that didn't need to be broken up for PEP8
Merge pull request #3897 from basepi/sedfix3837

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