Fixed filesToIgnore function