Update the mode in the "mkdir" function