Added checks for windows or linux