Tighten the Inputs for the Chm builder to prevent rebuilds, and clean up the temporary files when needed.