Add a sniff to check for the correct file extension

Fixes #7