fixed writing of raw list for non windows machines