Properly ignore binary files
Fix create file bug