Implement the mkdir task.