Fix print-log and diff compatibility with recent vc versions