Fix segc script

This patch fixes runtime bugs with the script regarding the savefile.