Fix regression on non-Windows