R concave hull fixes and csv writing and unix2dos-in