Fix bug with mkdir