Better symlink checking