Ignores mkdir error if dir exists.