Fix for stopping scripts on Windows.