change oo-diagnostics to use ruby tempfile