github-merge-pr: fix typo and correctly exit on error