fix regex for symlink condition