fixed method to skip files in ignore