Since test dirs can be on different disks relative paths and web paths won't work in some cases. Make all paths key from the link tree location. Do not use realpath.