Re #275, also cast the use_sudo to a bool to be evaluated correctly