Seems to me that the simplest solution might be to rename either the CHDK folders or the SDM forlders (since in both firmwares they have folders with the same names) so the firmware for either CHDK or SDM exclusively uses its own files then on start up you are asked whether to load CHDK or SDM.
Done.
Sf