use process.platform insteadof os.platform()