Small fixes to file.sed

The file.sed state checks the file to see if the "after" string is present. However, it treats the string as a regular expression, so fails to match if it contains any regular expression characters. 

This pull request also fixes the file.contains module function, which was trying to match the entire retrieved chunk against the search string, rather than searching for the search string.