fix for regexp problem with append_if_no_such_line