Add ensuredirexists, which creates a dir if it doesn't exist, in a race-safe way.
Merge pull request #7 from jlebar/os-exists

Add ensuredirexists, which creates a dir if it doesn't exist, in a race-...