[CHEF-4173] Only have Chef::Util::FileEdit write to a file when necessary.

Previously #insert_line_if_no_match would rewrite a file even if it
already contained the matching line.