dim: Generalize cherry-pick fixes for other branches
We had a lot hardcoded for drm-intel branches. Make it generic so it's easier to add other branches and add support for xe.
A quick attempt allowed me to cherry-pick the fixes from drm-xe-next to drm-xe-next-fixes by using dim cherry-pick-branch drm-xe-next-fixes
,
but the change was very intrusive.