Remove trailing linefeed from sysfs attributes