gen.sh : configurable tmp dir, exit on meta generation error.