daemon: Fix grep and related to work on absolute symbolic links (RHBZ#579608).