fix regression; account for symlinks.