either use system fnmatch or shipped one, always available
if we hanve a stats handle then use it when applying stats

make sure we have stats handle in cases such as relay startup or
being re-enabled as well