Fixed nssm service not starting properly and other windows bugs