take newline into account for sysfs_get_active_config