[snapshot] fix wrong key used for root and function stored instead of path
[snapshot] fix wrong key used for root and function stored instead of path

gorakhargosh/watchdog,teleyinex/watchdog,ymero/watchdog,ymero/watchdog,ymero/watchdog,mconstantin/watchdog,mconstantin/watchdog,teleyinex/watchdog,glorizen/watchdog,glorizen/watchdog,mconstantin/watchdog,gorakhargosh/watchdog,teleyinex/watchdog,glorizen/watchdog