remove NULL from sysfs_get_dirent
for kernels >= 3.13.0