Fixed missing mkdir calls