chore: Improve script for fetching remote branches
This commit refactors the `ai-rebase.sh` script to correctly
fetch remote branches specified as "owner/branch". It also
adds a conditional to avoid fetch when deleting backups,
improving script robustness and preventing errors.