Moved placement of mkdir