directory traversal and format dos file to unix