Fix mistakes in the resign-ipa script.