Race condition in FileStore when calling makedirs
We test if the directory exists before calling makedirs but this does not guarantee that the directory is not create just between the two calls.
We should use the parameter exist_ok
to ignore errors.