Fix IOUtility method CreateDirectory bug.