Changed output path to java.io.tmpdir