#!/bin/sh
-exec ./loba "$@" -v 2>&1 | ./simgrid-stable/bin/simgrid-colorizer - | less -R
+loba=./loba
+path=$(ldd "$loba" | sed '/libsimgrid/!d;s/.*=> \(.*\)\/lib\/libsimgrid.*/\1/')
+: ${path:="./simgrid-stable"}
+colorizer="$path/bin/simgrid-colorizer"
+
+exec "$loba" "$@" -v 2>&1 | "$colorizer" - | less -R