Fix popen workaround

It doesn't seem to work correctly.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>