Fix for #1223

This is still broke.
It just ignore symbolic links that match the pattern, things like `test/.#foo.js` (Emacs interlocks). I doubt anyone was using symbolic links in their tests.