Fixes overzealous file extension detection

Fixes #25