Add hack to prevent multiple mkdirs.