CHEF-3797: Fix insert_line_if_no_match to work more than once

https://tickets.opscode.com/browse/CHEF-3797