Feeling clever. Isolated a bug in ruby code to an error in the sysfs implementation on Linux (Fixed in 2.6.30 apparently)