Exposed detectable file type via option

Not sure if there might be some kind of reason for not exposing this, but all tests seem to pass with extra file types defined. This requirement was also mentioned in #131.