Use MkdirAll instead to be more resilient.

This should address https://github.com/hashicorp/consul/issues/510. I am looking into the tests now.