Improve generation of snort configuration file