Added osType check for system module.