daemon: Fix head and tail commands to work on absolute symbolic links (RHBZ#579608).