Fix incorrect usage of readlink().
Add rationale for the length of the symlink target buffer.