shell=True breaks the Unix upgrade

Use for Windows only
Fix test to take account of shell= in subprocess.call