makedirs recursively while running: fixes #28