Fix bug mkdir
Properly attribute this spaghetti