Fixed incorrect placement of mkdir.