Ignore working directory when excluding system patterns.

Fixes #1604 by removing working directory from excluded patterns.