Properly handle relative symlink paths in logging