Fix Project._ignored_file() doctest, and get it to match directories.