Scotland secure slender advantage in Nations League play-off