ensureDir is deprecated. Use ```mkdir -p``` instead.