Fixes to mkdir(..) semantics to support unit test niche cases.  For example, creating the "working" directory if it doesn't exist.