Make sure temporary directory is created before trying to use it

Signed-off-by: Damien Le Berrigaud <damien@pivotallabs.com>