Set scroll-bar-mode only when running under window-system.