code to distinguish windows/linux