Fixed condition for mkdir.