Refactored checks of ignored files