Allow specifying debug path through the environment.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Format logging text correctly.

If passed a single string, the logging code would insert spaces between
each character.  Also, it was not possible to print non-string args.
Ensure that the logging behavior is as similar to what print() would
provide as possible,

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>