Bugfix mkdirs in loader