I'd test for this first (`os != "win"`) and return early.