Use correct program name in diff output.
Simplify logic.