fix typo in copypnregions() - 'bkg.bkg -> bkg.reg'