Make test scritp smarter about ignoring certain files