Fix for popen