check whether the file is a binary before file size checking
fix typo