Fix warning "Both netname and configuration directory given" on Windows.