Changing ensureDir -> mkdir -p

(told by shlevy)