[Bug 27383] cmd: mkdir should give an error for pre-existing directories