Fix shutdown/restart commands on Windows.