Add an ability to mkdirs in a "bulk" mode