Ignore working directory when excluding system patterns.

Fixes #1604 by removing working directory from excluded patterns.
The working directory is a special case, we want to ignore that component of the path when excluding things, as otherwise everything in the directory will be filtered out if it matches, we should assume they want to search the current directory