Add sysfs helper file

The code in sysfs_helpers.h is needed by a couple interfaces. Credits to Andreilux for writing the code himself.