Add boundaries to the check_link target name match string

Currently, specifying /var/log/messages as the intended target causes the test to pass even if the actual target is /mnt/var/log/messages.  This fixes that problem.