Make debug output better.

When using 'pterosaurdebug' the output can be ugly/garbled if you aren't using xterm. This will change the behavior to use the $TERM environment variable.