introduced likely_guess_file_type, refactored likely_read accordingly