remove os require use process.platform instead