Fixed extension checking
Fixed a typo in the comment
Merge pull request #148 from badlink/master

Fixed extension checking