fixed bug in skip_file() that wasnt catching binary files