Updated lyx2docx to ensure consistent subprocess I/O behaviour across both Windows and UNIX platforms.