use readlink to determine chroot path