I've implemented the script in Vala and packaged it as Low Battery LED (lowbatled). If there is no PatternBatteryLow in mce.ini, the package postinst will add it using mceledpattern and restart MCE.