Fixing bug in mkdir.