Fixes syntax to work with dodgy subprocess.Popen hack