Now with a basic implementation of readlink -f for mac inside (so it works there)
adjusted 2 samples so they are independent of where they are run from