[C++] Stop using realpath(1) to handle $(realpath) in recipe

This should fix $(realpath) on Mac.
diff --git a/func.cc b/func.cc
index dd6725c..34fca3e 100644
--- a/func.cc
+++ b/func.cc
@@ -383,7 +383,11 @@
 void RealpathFunc(const vector<Value*>& args, Evaluator* ev, string* s) {
   const string&& text = args[0]->Eval(ev);
   if (ev->avoid_io()) {
-    *s += "$(realpath ";
+    *s += "$(";
+    string kati_binary;
+    GetExecutablePath(&kati_binary);
+    *s += kati_binary;
+    *s += " --realpath ";
     *s += text;
     *s += " 2> /dev/null)";
     return;