Fixing issue with mkdir