Could you use `if cfg!(unix) {...} else {...}` here instead? Seems to flow a bit nicer.