Tie nginx to the UI flag

Only install nginx if we're installing the UI.