Set output directory as the 2nd input arguments of CoreExternGenerator.
Added "do not edit" statement to the generated output.