Rowan Vine scored the only goal as St Johnstone boosted their European ambitions with a 1-0 victory over St Mirren at McDiarmid Park.