fixed problem with DOS formatted files