[R40] Update tools repository to ROM40. Fix bug in recoverylink.py