fixed endless loop if using sudo => TRUE for a specific server