Make subprocess.Popen(..., shell=True) use sys.platform for checking.