Fix detecting of binary file status for new files