Fix to ensure correct operation when deploying from Windows