new xmalloc_readlink_follow() routine to fully expand trailing symlinks