Solve GDB problems by always passing os.environ for environment