xpp: sysfs access cleanups