Gdb fix for run with scripts