Changed to using _popen and _pclose under MicroSoft VisualStudio
Fixed issue with missing EOL in last object