Making laptop battery script work with the new /sys filesystem organization.