Made the creation of the Temp dir recursive

I found that I can't create tempdir like this ```temp/staging``` cause the recursive option is not activated in the ```mkdir``` function .

The PR is very simply and it has no drawbacks , please merge it , Thanks