Check for the value of the use_sudo flag before using it to install gems