dgtool: do not use tmp directory unless asked for it
dgtool: do not use tmp directory unless asked for it

-Xdg tmpdir will make dgtool to work in a tmp directory.

Fixes #383.

mchalupa/dg,mchalupa/dg,mchalupa/dg,mchalupa/dg