Nodejs function to detect windows platform