Fixed directory structure creation issue.