Fix configuration bugs for windows scripts