Here's how I managed the change from mod_attforblock to mod_attendance - it might be useful?
https://github.com/danmarsden/moodle-mod_attendance/blob/MOODLE_27_STABLE/version.php#L34
It's a bit nasty and is really an abuse of verison.php but worked ok - I then eventually removed it from version.php