Rangers will play Raith Rovers in the Ramsdens Cup final after Jon Daly's second-half header earned them a 1-0 victory at Stenhousemuir.