Issue #8: Must use binary popen to avoid CRLF screwing everything up.
Fixed issue with missing argument to writefln