fix failure of glob to match broken symlinks under some conditions