Aaron Muirhead scored an 89th-minute penalty as Arbroath moved level on points with St Johnstone and Raith at the top of the Scottish Championship after a 2-1 victory over winless Ross County.