Made debug output overwrite `debug.txt` instead of appending.

See the discussion on the [mailing list](https://groups.google.com/forum/#!msg/xdress/E9gA9X0YDus/EFITq-FZ9KQJ) for this feature request.