Removed os dependent part in module.