battery plugin: Replace getvalue() with parse_value_file().