script: fix verification of multisig