7.6.3 ‘_readlinkf()

This function was taken from POSIX sh readlinkf library by Koichi Nakashima. ‘readlink’ is also not defined by POSIX, so this function uses ‘ls’ to follow symbolic links until it reaches the actual file.