Fix ignore pattern file check.