Think about a DIPEA catalyzed, thiirane formation that liberates a hydroxyl anion, which attacks to the 2 position and liberates the methylsulfanyl group. The transition intermediate is stabilized by conjugation with the nitrile group, through the unsaturated ring.