Add new public method to file_edit.rb to append a line if the regex doesn't match