handle dos/unix format differences