Inject a temporary directory.

Change-Id: I420b85ed73ba6ea02ac4b5fe18411fa18d994011
Reviewed-on: http://gerrit.dmdirc.com/3022
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>