file type check converted to pattern match

so extension will be enabled for file types like python.django etc.