Fixed Popen use