Fixed a regex bug where program name inside LaTeX quotes was replaced.