fix getbattery.sh