Correct checking for enabled rules and their existense. Also improve some code
Use the same code for applying customizations during config generation and update. Also do not unlink files that snort references in config.