Add build setting for dirac and fix query submitter.