Fixbug remove symbol lookup at MCCacheWriter

Change-Id: I4755bc99a414653c897f26609ad1bdc640f571ea
diff --git a/lib/ExecutionEngine/MCCacheWriter.cpp b/lib/ExecutionEngine/MCCacheWriter.cpp
index ea45551..6fbf4ba 100644
--- a/lib/ExecutionEngine/MCCacheWriter.cpp
+++ b/lib/ExecutionEngine/MCCacheWriter.cpp
@@ -97,10 +97,6 @@
   header->sizeof_size_t = sizeof(size_t);
   header->sizeof_ptr_t = sizeof(void *);
 
-  header->root_base_addr = mpOwner->lookup("root");
-
-  LOGD("Lookup root() address [%p]", header->root_base_addr);
-
   // libRS is threadable dirty hack
   // TODO: This should be removed in the future
   header->libRS_threadable = libRS_threadable;
diff --git a/lib/ExecutionEngine/Script.cpp b/lib/ExecutionEngine/Script.cpp
index e67fd61..29e3898 100644
--- a/lib/ExecutionEngine/Script.cpp
+++ b/lib/ExecutionEngine/Script.cpp
@@ -297,7 +297,7 @@
   }
 
   if (checkOnly)
-    return reader.checkCacheFile(&objFile, &infoFile, this);
+    return !reader.checkCacheFile(&objFile, &infoFile, this);
 
   // Read cache file
   ScriptCached *cached = reader.readCacheFile(&objFile, &infoFile, this);