Added existing directory check to MkDir.