rewrite battery script for systemd file locations