SONARPLUGINS-2313 readlink -f is not supported on macosx
  * As a workaround we are now using a custom function to emulate the same behavior