r11942: patch from Marcin to fix the mkdir() in perfcount daemon