Fixed pwd handling for Windows pre-install