Utilize the TMPDIR environment variable for the q output files

Some people may enjoy tailing /tmp/q but for others, /tmp is a rotten neighborhood filled with oddly named unix socket files.  Using the value of TMPDIR allows those people to specify an higher class neighborhood for their logging needs.  Even in $HOME/tmp if they feel the need to keep their log file close to them at all times.