engine: Allow custom tempdir

Change-Id: Ie4703399c4384ed6a1956316a8d7aebf937056d7
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>