Ignore working directory when excluding system patterns.

Fixes #1604 by removing working directory from excluded patterns.
Hmm, I don't understand this...I guess I'll have to read the code some more.