Added OS check for mac, windows and Linux