Comment on ensure_dir function