Fix directory bug and issue downloading with GDB native.