scripts: signGP: properly returning 1 in case of errors