fixed: not creating latex if output path does not exist