Build - work around missing readlink -f on Mac

Change-Id: Id3abc843720040c8d203d5abc2647ca8de32abf3
Signed-off-by: STELIX <ssspinni@gmail.com>