Added a third (optional) command line argument specifying the output
directory for compiled automaton resources.  If omitted, it defaults to
the output directory for Java sources.
Exit with a non-zero error code if an exception is caught in main.