platform.system() returns 'Darwin' on Mac so simply checking for 'win' within the string won't work