Use MkdirAll instead to be more resilient.

This should address https://github.com/hashicorp/consul/issues/510. I am looking into the tests now.
We should probably use a temp dir as with the above test here as well, and remove it when we are done.