Make sure remake_outputs.pl fails when passed wrong options.

It was failing silently for a long time because a wrong argument was
erronously given to it.
(cherry picked from commit 6db447d011c4ac110e152062f5391b01758067ca)
Fix examples output after fixes 0f84c0c4e0f and b87c03c1c8.
(cherry picked from commit 27e224ae56c92ba185c4d3d8a44fbab2e4570c64)