file type check converted to pattern match

so extension will be enabled for file types like python.django etc.
Merge pull request #191 from zekzekus/master

file type check converted to pattern match