re-usable version of is_windows