Werk #5029: Fix Windows agent crash with logwatch and '*' wildcard

KomponenteChecks & Agents
TitelFix Windows agent crash with logwatch and '*' wildcard
Datum2017-07-24 16:56:26
Check_MK EditionCheck_MK Raw Edition (CRE)
Check_MK Version1.2.8p25
LevelTrivial Change
KlasseBug Fix
KompatibilitätKompatibel - benötigt kein manuelles Eingreifen

Windows agent crashed due to globbing wildcard '*' bringing in directories when using logwatch. Re-implemented the fix already done in master also for 1.2.8 (code histories diverged due to a large refactoring done in Windows agent for 1.4.0).