widgets/battery: use snprintf for dbus path and update widget cleanup