Restore extension detection (ty and ty+)