Fixed the way Popen is called