Just use readlink.