Removed duplicate mkdirs.