Replace ensure_output_path with good ol mkdir_p