DCAPI: handle failure better on include and for sketch_template, use zmain.cf