heretic-cli update

Update heretic-cli with heretic-cli update: it stages the new binary as .heretic-cli.pending, swaps it in on the next run and keeps a backup for rollback.