At some systems FilenameSniff returns a number instead of the filename

Fixes #12
Improve the check for non class files

Fixes #13