Fix a bug where post JB AppDataDirGuesser gets a null cache directory.
This is due to the fact that the format of the classloader changed. We
can now use the system property java.io.tmpdir instead. If that fails,
we fall back on the original logic.
diff --git a/src/main/java/com/google/dexmaker/AppDataDirGuesser.java b/src/main/java/com/google/dexmaker/AppDataDirGuesser.java
index e9f343c..b59670e 100644
--- a/src/main/java/com/google/dexmaker/AppDataDirGuesser.java
+++ b/src/main/java/com/google/dexmaker/AppDataDirGuesser.java
@@ -71,6 +71,12 @@
 
     File[] guessPath(String input) {
         List<File> results = new ArrayList<File>();
+        // Post JB, the system property is set to the applications private data cache
+        // directory.
+        File tmpDir = new File(System.getProperty("java.io.tmpdir"));
+        if (isWriteableDirectory(tmpDir)) {
+            results.add(tmpDir);
+        }
         for (String potential : input.split(":")) {
             if (!potential.startsWith("/data/app/")) {
                 continue;