John McGinn moved above Ally McCoist in the all-time Scotland scoring charts tonight as the national team beat Poland to clinch a play-off spot.