MINOR: tools: add get_exec_path implementation for solaris based systems.

We can use getexecname() which fetches AT_SUN_EXECNAME from the auxiliary
vectors.
diff --git a/src/tools.c b/src/tools.c
index ed3c3a6..c6bc81b 100644
--- a/src/tools.c
+++ b/src/tools.c
@@ -4821,6 +4821,8 @@
 			break;
 		}
 	}
+#elif defined(__sun)
+	ret = getexecname();
 #endif
 	return ret;
 }