create required directories synchronously on startup