convert to unix lines
convert to unix lines
add support for posix systems. tested under rhel6