Another attempt to eradicate ensureDir

See c556a6ea46e71e1907d78b71fab36df30297b3ad.
Add a deprecation warning to ensureDir