Fix race condition calling os.makedirs
Merge pull request #40 from cernekee/makedirs-race

Fix race condition calling os.makedirs