replace:wscript - change the "bool" checks to be compatible with more platforms