battery-acpi: Add support for energy_... sysfs files

Signed-off-by: Michael Buesch <m@bues.ch>
battery-acpi: Dynamically allocate path names

Signed-off-by: Michael Buesch <m@bues.ch>