Handle windows and linux environment