Ignore working directory when excluding system patterns.

Fixes #1604 by removing working directory from excluded patterns.
No, I specifically want to remove the working directory before comparing exclusion patterns, other inclusion patterns are deliberately not affected.