Simplifying the file-extension code.

See: https://github.com/purcell/wisp-mode/commit/1e625f17a73e022ced6bd53ecd0cad395583ee7a