The setting of msvc environments variables overwrote that. Fix that by running the script with the correct environment.