Asynchronous multiplatform popen implementation relying on EventMachine