John McGinn came off the bench to net a late winner for Scotland against Croatia at Hampden tonight and keep alive their Nations League hopes.