pass all directories to mkdir at once

this reduced startup time a little