fix backuptool.sh to work with PB