readlink compatible