See 5727646e4e0bf841392ffb13d91b11f4169e1ab3

This should work correctly, regardless of the underlying OS.