Be slightly more user friendly in generate.php.

Change-Id: I45bcf273ae3cc7033232c72a21f16ef4a5a322e4