Fixed up plugin, works if you don't have delete_output_folder = True, otherwise folder gets created too early, then deleted. Not sure how best to fix?