Fix whitespaces and indent
Fix whitespace and indent
Set variable after make sure it's defined and has elements
Fix #2302, save custom uploaded l7 pattern files on config.xml and replicate it to slave