A better workaround for samestat on Windows.