fixed some sudo subshell errors and deb_frontend to noninteractive for wsgate binary install