Update script/sg.sh

Make sync_gatway running for foreground mode instead of background mode.