gdb: sim: merge the sysroot update logic together