fix battery script call from tmux