Find the right filename for the battery

On my machine, the battery filename is not `battery_BAT0`, but `battery_BAT1`. Getting the output of `upower -e` and checking it line by line seems to work fine, but I don't really write a lot of lua, so there may be a better way to get this done. Feel free to reject the pull request in favor of a better solution.