fix symlink check