Implement readlink.