Add get_sysbuild function, refactor livebuild