Added an operating system check so it runs in windows and linux