Make determine_read_type only look at file name
Merge branch 'hotfix/determine_read_type'