refine diag_send output
change file from dos to unix