In the application of this Act to Scotland the expressions "justice" and "justices" shall mean sheriff or sheriff substitute.