Bologna midfielder struck his first goal for his country at a crucial moment as Scotland fought back to beat Greece at Hampden.