Made the temp directory making lazy

Signed-off-by: Mathieu D'Amours <mathieu.damours@nextorms.com>