fix file_type when suffix is different
Merge pull request #563 from teharrison/develop

fix file_type when suffix is different