Allow specification of temp directory.