workaround OSX lack of readlink -f option - making it a global supported function rather than variadic workaround